package com.partvoyage.client.mvp2.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.partvoyage.shared.InfoPointBean;

public class ChargerPointEvent extends
		GwtEvent<ChargerPointEvent.ChargerPointEventHandler> {
	public static Type<ChargerPointEventHandler> TYPE = new Type<ChargerPointEventHandler>();

	public interface ChargerPointEventHandler extends EventHandler {
		void onChargerPoint(ChargerPointEvent event);
	}

	private InfoPointBean infoPointBean;

	public ChargerPointEvent(InfoPointBean infoPointBean) {
		this.infoPointBean = infoPointBean;
	}

	public InfoPointBean getInfoPointBean() {
		// TODO Auto-generated method stub
		return infoPointBean;
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ChargerPointEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ChargerPointEventHandler handler) {
		handler.onChargerPoint(this);

	}

}
